/*
 * @Author: your name
 * @Date: 2021-05-31 11:24:26
 * @LastEditTime: 2021-05-31 11:52:50
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vuePro\src\utils\index.js
 */
export function isInWhiteList(whiteList = [], url = "") {
  let res = whiteList.find((item) => {
    return item === url;
  });
  return res ? true : false
}

/* 正则校验路径信息 */
export function isCheckPass() {
  const reg = /^\/login\/index/
  const flag = reg.test('/xxx/xxx');
}